package cn.tqfeiyang.smartadmin.system.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 用户登录请求
 *
 * @author tqfeiyang
 * @since 2024/8/22 9:43
 */
@Data
public class UserLoginDTO {

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 登录设备，默认是 default
     */
    @Schema(description = "登录设备，默认是 default")
    private String device;

}
